package com.Tjise.fundemo;

public class GetF {
    public static void main(String[] args) {
        int n =45;
        getF(n);
    }

    public static long getF(int n) {
        int sum = 0;
        int su = 1;
        int s = 0;
        for (int i = 2; i <= n; i++) {
            sum = su + s;
            s = su;
            su = sum;

        }
        return sum;
    }
}
